package org.FaPe3D.engine.render
{
	import org.FaPe3D.Adapter;
	import org.papervision3d.core.render.data.RenderStatistics;
	import org.papervision3d.render.BasicRenderEngine;

	public class FPBasicRenderEngine extends BasicRenderEngine
	{
		public function FPBasicRenderEngine()
		{
			super();
		}
		
		public function defaultRender(id:String = ''):RenderStatistics
		{
			if(id == '')
				id = Adapter.currentAddapterID;
			
			return super.renderScene(
				 Adapter.getAdapter(id).scene.getDefaultScene(),
				 Adapter.getAdapter(id).cameras.getDefaultCamera(),
				 Adapter.getAdapter(id).viewports.getDefaultViewport(),
				 true);
		}
		
		
	}
}